import sys
from PyQt5.QtWidgets import QApplication,QWidget
from PyQt5.Qt import QLineEdit,QPushButton,QLabel

class Window(QWidget):
    def __init__(self):
        super().__init__()
        self.resize(600,400)
        self.setWindowTitle("垃圾识别")
        self.move(100,100)
        # label = QLabel(self)
        # label.resize(150,150)
        # label.move(50,50)
        # label.setText("用户名")

        name_line = QLineEdit(self)
        name_line.setText('admin')
        name_line.move(100,50)
        name_line.resize(400,48)
        name_line.setPlaceholderText('请输入用户名')

        pwd_line = QLineEdit(self)
        pwd_line.setEchoMode(QLineEdit.Password)
        pwd_line.setText('123456')
        pwd_line.move(100, 150)
        pwd_line.resize(400, 48)
        pwd_line.setPlaceholderText('请输入密码')

        sub_btn = QPushButton(self)
        sub_btn.setText("登录")
        sub_btn.move(100, 250)
        sub_btn.resize(400, 48)



if __name__=='__main__':
    app = QApplication(sys.argv)
    w = Window()

    w.show()
    sys.exit(app.exec_())

